<template>
  <div>
    <button @click="btnClick">按钮</button>
    <h1 class="title">{{message}}</h1>
    <Cpn></Cpn>
  </div>
</template>

<script>

import Cpn from "./Cpn"

export default {
  name: "App",
  components :{
    Cpn
  },
  data(){
    return {
      message: 'hello webpack',
      name: 'zhangsan'
    }
  },
  methods: {
    btnClick(){
      console.log("btnClick");
    }
  }
}
</script>

<style scoped>
.title{
  background: green;
}
</style>